package com.ceuer.schedul;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@EnableScheduling//开启定时任务
@SpringBootApplication
public class SchedulApplication {
	
	public static void main(String[] args) {
		SpringApplication.run(SchedulApplication.class, args);
	}
	
	@Scheduled(fixedRate = 10000)//单位毫秒
	public void run(){
		System.out.println("sad");
	}
}
